package com.graduation.smartparkingplatform.Dao;

import com.graduation.smartparkingplatform.Pojo.Charge;
import com.graduation.smartparkingplatform.Pojo.ClientCharge;
import com.graduation.smartparkingplatform.Pojo.Paid;
import com.graduation.smartparkingplatform.Pojo.SpaceAll;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ClientMapper {
  public Boolean addOpinion(
      @Param("title") String title,
      @Param("describe") String describe,
      @Param("tel") String tel,
      @Param("fileUrl") String fileUrl,
      @Param("nowTime") String nowTime);

  public Boolean spaceStatus(@Param("spaceId") Integer spaceId);

  public Boolean chooseSpace(
      @Param("spaceId") Integer spaceId,
      @Param("carPlate") String carPlate,
      @Param("tel") String tel,
      @Param("carTime") String carTime);

  public Boolean cancelSpace(@Param("spaceId") Integer spaceId, @Param("tel") String tel);

  public String testTel(@Param("spaceId") Integer spaceId);

  public String getRegion(@Param("spaceId") Integer spaceId);

  public SpaceAll getSpaceTime(@Param("spaceId") Integer spaceId);

  public Charge getSpaceCharge(@Param("spaceId") Integer spaceId);

  public List<ClientCharge> getChargeList();

  public List<Paid> getPaidList();
}
